package com.yun.blog.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * title        : Picture
 * projectName  : dantouBlog-back
 * description  : 图片类
 * author       : simple
 * date         : 2022/11/30下午4:23
 */

@Data
@TableName("blog_picture")
public class Picture {
    @TableId(type = IdType.AUTO)
    private Integer pictureId;

    private Integer albumId;
    private String pictureName;
    private String pictureUrl;

    private Boolean isShow;

    @JsonFormat(pattern = "yyyy年MM月dd日 hh:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
